//
//  FWEditGoodsTagView.h
//  FengWoFilterTickerDemo
//
//  Created by 郝秀丽 on 15/10/29.
//  Copyright © 2015年 FengWo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Model.h"

typedef NS_ENUM(NSUInteger, FWEditGoodsTagViewType) {
    FWEditGoodsTagViewTypeAdd,      // 添加新标签
    FWEditGoodsTagViewTypeModify,   // 修改旧标签
};

@class FWEditGoodsTagView;
@protocol FWEditGoodsTagViewDelegate <NSObject>
- (void)editGoodsTagView:(FWEditGoodsTagView *)editGoodsTagView didClickCancelButtonWithModel:(Model *)model;

- (void)editGoodsTagView:(FWEditGoodsTagView *)editGoodsTagView didClickFinishButtonWithModel:(Model *)model type:(FWEditGoodsTagViewType)type;

- (void)editGoodsTagView:(FWEditGoodsTagView *)editGoodsTagView didClickDeleteButtonWithModel:(Model *)model;
@end


@interface FWEditGoodsTagView : UIView

@property (nonatomic, assign) id<FWEditGoodsTagViewDelegate> delegate;
@property (nonatomic, strong, readonly) Model *model;
@property (nonatomic, assign) FWEditGoodsTagViewType type;
- (void)reloadEditGoodsTagViewWithModel:(Model *)model;

@end
